<?php

 header("Content-type:text/html;charset=utf-8");
	$title=$_POST[title];
	$desc=$_POST[content];
	
	$link=mysql_connect("localhost","root","root") or die("数据库无法连接成功");
	mysql_select_db("db_ee",$link) or die("数据库访问错误");
	mysql_query("set names utf8");
	$sql=mysql_query("INSERT INTO bk ( `title`, `content`) VALUES ( '$title', '$desc')");
    echo "<script> alert('百科添加成功'); window.location.href='bk.php';</script>";
	
?>